﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Data.Linq;
using System.Text;
using UtilityExtensions;
using DAL;
using BOL;

namespace BOL.UI
{
    public class UIMapaDetalleInfo
    {

        public string id { get; set; }
        public string imagen { get; set; }
        public string widthImagen { get; set; }
        public string heightImagen { get; set; }

        public string shape { get; set; }
        public IEnumerable<DAL.UI> cordenadas { get; set; }




        public string output  { get

        {
            string img = "<img src={0} name='{1}'  " +
                       "width='{2}'  height='{3}'" +
                       "border='{4}' class='{5}'" +
                       "usemap='{6}' >".Fmt(imagen, 
                       id,
                       widthImagen,
                       heightImagen,
                       0,
                       "#"+id+"_map"
                       );

            
            string mapa="<map id='#"+id+"_map' name='#"+id+"_map' class='tabs'>";
            


            foreach (var item in cordenadas)
            {
                    //mapa=mapa+"<area shape='{0}' coords='{1}' alt='{2}' href='#' onclick="javascript:__IMAGEMAP_onClick(0,'E:17');" ".Fmt(shape,
                    //    item.mapCordenada,
                    //    item.descripcion,
                    //    );
                    //href="#" onclick="javascript:__IMAGEMAP_onClick(0,'E:17');" state="17" />
            }


            return "";

        }

        }


    }
}
